#ifndef _GOLF_H
#define _GOLF_H

#include <string>

using std::string;

struct golf
{
    string fullname;
    int handicap;
};

// non-interractive version
void setgolf(golf  &g, string name, int hc);

// interactive version
// 可以在内部使用第一个函数
int setgolf(golf &g);

// function resets handicap to new value
void handicap(golf &g, int hc);

// function display contents of golf structure
void showgolf(const golf & g);



#endif
